import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import Show from '@/views/Show.vue'
import Make from '@/views/Make.vue'
import Edit from '@/views/Edit.vue'

const routes = [
    { name: 'home', path: '/', component: Home },
    { name: 'show', path: '/show', component: Show },
    { name: 'make', path: '/create', component: Make },
    { name: 'edit', path: '/edit', component: Edit }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
